from django.urls import path

from . import views


app_name = "xpack"
urlpatterns = [
    path('platform/<str:application_id>/status', views.Status.as_view()),
    path('platform/sourceedit', views.Source.Operate.as_view()),
    path('platform/source', views.Source.List.as_view()),
    path('platform/<str:application_id>/wechat', views.Wechat.as_view()),
    path('platform/<str:application_id>/wecom', views.Wecom.as_view()),
    path('platform/<str:application_id>/dingtalk', views.Dingtalk.as_view()),
    path('platform/<str:application_id>/feishu', views.Feishu.as_view()),
    path('auth/<str:auth_type>/detail', views.Detail.as_view()),
    path('auth/<str:auth_type>/info', views.Detail.Operate.as_view()),
    path('auth/types', views.Types.as_view()),
    path('qr_type', views.QrType.as_view()),

    path('wechat/<str:application_id>', views.WechatMessage.as_view()),
    path('wecom', views.Auth.wecom.as_view()),
    path('wecom/<str:application_id>', views.WecomMessage.as_view()),
    path('dingtalk', views.Auth.dingtalk.as_view()),
    path('dingtalk/<str:application_id>', views.DingtalkMessage.as_view()),
    path('feishu/<str:application_id>', views.FeishuMessage.as_view()),

    path('system/api_key', views.SystemApiKey.as_view()),
    path('system/api_key/<str:api_key_id>', views.SystemApiKey.Operate.as_view()),
    path('license/profile', views.License.as_view()),

    path('auth/wecom', views.Auth.wecom.as_view()),

    path('application/<str:application_id>/tools/aippt_outline', views.Markdown.as_view()),
    path('application/<str:application_id>/tools/aippt_slides', views.AiPPTSlides.as_view()),
    path('application/<str:application_id>/tools/aippt_tpl', views.AiPPTTemplateList.as_view()),
    path('application/<str:application_id>/tools/aippt', views.AiPPTOutline.as_view()),
]
